﻿<phone:PhoneApplicationPage 
    x:Class="WpUserControls.Buttons"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" xmlns:my="clr-namespace:WpUserControls.UserControls;assembly=WpUserControls">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="WJ's Windows Phone User Controls" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="Buttons" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <StackPanel HorizontalAlignment="Center" Margin="0,20,0,0" VerticalAlignment="Top" Width="320">
                <my:RoundCornerButton ImageAhead="/Examples;component/Images/email.png" ImageTail="/Examples;component/Images/shop.png" Foreground="Black" ImageAheadHeight="42" ImageAheadWidth="42" ImageTailHeight="42" ImageTailWidth="42" Text="Button with images" Margin="0,0,0,50" ImageAheadBorderThickness="3" ImageAheadBorderBrush="#FFE82424" ImageTailBorderThickness="3" Height="64" ImageTailBorderBrush="#FF112696" TextMargin="15,0" UseLayoutRounding="True" ImageAheadCornerRadius="8" ImageTailCornerRadius="12">
                    <my:RoundCornerButton.ButtonBackground>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFFFFFFF" Offset="0.4" />
                            <GradientStop Color="#FFB5B5B5" Offset="0.9" />
                        </LinearGradientBrush>
                    </my:RoundCornerButton.ButtonBackground>
                </my:RoundCornerButton>
                <my:RoundCornerButton ImageAhead="/Examples;component/Images/email.png" ImageTail="/Examples;component/Images/shop.png" Foreground="Black" ImageAheadHeight="64" ImageAheadWidth="64" ImageTailHeight="64" ImageTailWidth="64" Orientation="Vertical" Width="204" Text="Vertical layout" Margin="0,0,0,50">
                    <my:RoundCornerButton.ButtonBackground>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FFFFFFFF" Offset="0.4" />
                            <GradientStop Color="#FFB5B5B5" Offset="0.9" />
                        </LinearGradientBrush>
                    </my:RoundCornerButton.ButtonBackground>
                </my:RoundCornerButton>
                <my:RoundCornerButton ImageTail="/Examples;component/Images/shop.png" Foreground="Black" ImageTailHeight="64" ImageTailWidth="64" Text="Image on one side" Margin="0,0,0,50" TextMargin="30,0,40,0" UseLayoutRounding="False" ImageTailBorderBrush="Gray" ImageTailBorderThickness="1,0,0,0">
                    <my:RoundCornerButton.ButtonBackground>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF909090" Offset="0.4" />
                            <GradientStop Color="#FFF0F0F0" Offset="0.9" />
                        </LinearGradientBrush>
                    </my:RoundCornerButton.ButtonBackground>
                </my:RoundCornerButton>
                <my:RoundCornerButton ImageAhead="/Examples;component/Images/email.png" Foreground="Black" ImageAheadHeight="64" ImageAheadWidth="64" Orientation="Vertical" Width="204" Text="Image on top" Margin="0,0,0,50" BorderBrush="#FFDE4A4A" Height="114">
                    <my:RoundCornerButton.ButtonBackground>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF303030" Offset="0.4" />
                            <GradientStop Color="#FFB5B5B5" Offset="0.9" />
                        </LinearGradientBrush>
                    </my:RoundCornerButton.ButtonBackground>
                </my:RoundCornerButton>
            </StackPanel>
        </Grid>
    </Grid>

    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
